package demo.springcloud.webflux.feign.client.impl;

import demo.springcloud.webflux.common.entity.Result;
import demo.springcloud.webflux.common.entity.StatusCode;
import demo.springcloud.webflux.feign.client.RestClient;
import org.springframework.stereotype.Component;

@Component
public class RestClientImpl implements RestClient {


    @Override
    public Result findById(String id) {
        System.out.println("调用user微服务出错");
        return new Result(false, StatusCode.REMOTEERROR,"服务器繁忙");
    }
}
